<template>
	<view class="orderfound">
		<view class="agree" v-html="getContent(content)">

		</view>
	</view>
</template>

<script>
	import {
		Agree
	} from "@/api/api.js"
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad() {
			this.Agree()
		},
		methods: {
			Agree() {
				Agree().then(res => {
					this.content = res.data

				})

			},
			//富文本
			getContent(content) {
				if (typeof(content) == 'string')
					return content.replace(/<img src="/g, '<img style="max-width:100%" src="' + getApp().globalData
						.data
						.websiteUrl)
			},
		}
	}
</script>

<style lang="scss">
	.agree {
		padding: 12px;
	}
</style>
